package com.sj;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@SpringBootApplication
public class AssistApplication_v1 extends SpringBootServletInitializer{

	@RequestMapping("/")
	public String home() {
		return "index";
	}
	@RequestMapping("/login")
	public String login() {
		return "login";
	}


	public static void main(String[] args) {
		SpringApplication.run(AssistApplication_v1.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(AssistApplication_v1.class);
	}

}
